package com.ibigcat.module.mdm.controller.admin.coderuleset.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 编码规则配置明细新增/修改 Request VO")
@Data
public class CodeRuleSetSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "25008")
    private Long id;

    @Schema(description = "编码规则主键", example = "3807")
    private Long codeRuleId;

    @Schema(description = "规则顺序号")
    private Long ruleOrder;

    @Schema(description = "规则", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "规则不能为空")
    private String rule;

    @Schema(description = "规则值", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "规则值不能为空")
    private String ruleValue;

    @Schema(description = "顺序号位数")
    private Long orderNumDigit;

    @Schema(description = "顺序号初始值")
    private Long orderNumInitial;

}